package com.hdu.transmitableThreadLocal;

public class TransmitableThreadLocal<T> extends ThreadLocal<T> {

    @Override
    public void set(T value) {
        super.set(value);
        TransmitableThreadLocalHolder.register(this);
    }

    @Override
    public void remove() {
        super.remove();
        TransmitableThreadLocalHolder.unregister(this);
    }
}
